package Grantsfire::Controller::Tag;

use strict;
use warnings;
use base 'Catalyst::Controller';

sub default : Private {
	my ($self, $c) = @_;
	
	my $tagid = $c->req->args->[1]
		or return $c->error("No tag specified");
		
	$c->stash->{tag} = $c->model('GF::Tag')->find($tagid);
	$c->stash->{template} = 'tag.tt';
}

1;
